# isAdmin.coffee
#
# @description :: TODO: You might write a short summary of how this model works and what it represents here.
# @docs        ::

module.exports = (req, res, next) ->

  if req.session.admin || req.session.employer
    return next()

  return res.back2AdminLogin(401);
